public class CopyObject implements  Cloneable {

   private Person person;

    @Override
    protected CopyObject clone() throws CloneNotSupportedException {
        Person clone = this.person.clone();
        this.person=clone;
        return (CopyObject)super.clone();
    }

    public Person getPerson() {
        return person;
    }

    public void setPerson(Person person) {
        this.person = person;
    }
}
